﻿<div ng-controller="shippingController">
    <div class="wrapper border-bottom white-bg page-heading">
        <div class="col-lg-pull-12">
            <ol class="breadcrumb">
                <li class="active">配送网点</li>
            </ol>
        </div>
    </div>
    <div class="row ui-box">
        <div class="col-md-8">
            <a class="btn btn-primary btn-sm" ui-sref="app.order.position_detail()"><i class="fa fa-plus"></i> 添加</a>
        </div>
    </div>
    <table class="table table-hover m-t-md">
        <thead>
            <tr>
                <!--<th width="100">卖家</th>-->
                <th width="300">网点名称</th>
                <th width="100">省市区地址</th>
                <th width="100">具体地址</th>
                <th width="80">联系人</th>
                <th width="160">联系电话</th>
                <th width="160">操作</th>
            </tr>
        </thead>
        <tbody>
            <tr ng-repeat="item in list.rows">
                <!--<td>{{item.merchant_id}}</td>-->
                <td>{{item.shop_name}}</td>
                <td>{{item.region_id}}</td>
                <td>{{item.address}}</td>
                <td>{{item.name}}</td>
                <td>{{item.phone}}</td>
                <td>
                    <a class="btn btn-primary btn-xs" ui-sref="app.order.position_detail({id:{{item.id}}})">编辑</a>
                    <a class="btn btn-primary btn-xs" ng-click="remove(item.id)">删除</a>
                </td>
            </tr>
        </tbody>
    </table>
    <div class="row">
        <div class="col-md-12">
            <uib-pagination total-items="list.total_result" items-per-page="query.size" ng-model="query.page" num-pages="list.total_pages"
                            ng-change="search()" class="pagination-sm" boundary-links="true" previous-text="&lsaquo;" next-text="&rsaquo;"
                            first-text="&laquo;" last-text="&raquo;"></uib-pagination>
        </div>
    </div>
</div>